Component({
  properties: {
    show: {
      type: Boolean,
      value: false
    },
    deviceInfo: {
      type: Object,
      value: {}
    }
  },

  data: {},

  methods: {
    onMaskTap() {
      this.triggerEvent('close');
    },

    onConfirm() {
      this.triggerEvent('confirm', { deviceInfo: this.data.deviceInfo });
    },

    onDetails() {
      this.triggerEvent('details', { deviceInfo: this.data.deviceInfo });
    },

    noop() {}
  }
});
